package com.example.pagedemo.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class Major
{
    private Long majorId;

    private String majorNumber;

    private String majorName;

    private String majorClassification;

    private String majorCategory;

    private String majorDuration;

    public void setMajorId(Long majorId) 
    {
        this.majorId = majorId;
    }

    public Long getMajorId() 
    {
        return majorId;
    }
    public void setMajorNumber(String majorNumber) 
    {
        this.majorNumber = majorNumber;
    }

    public String getMajorNumber() 
    {
        return majorNumber;
    }
    public void setMajorName(String majorName) 
    {
        this.majorName = majorName;
    }

    public String getMajorName() 
    {
        return majorName;
    }
    public void setMajorClassification(String majorClassification) 
    {
        this.majorClassification = majorClassification;
    }

    public String getMajorClassification() 
    {
        return majorClassification;
    }
    public void setMajorCategory(String majorCategory) 
    {
        this.majorCategory = majorCategory;
    }

    public String getMajorCategory() 
    {
        return majorCategory;
    }
    public void setMajorDuration(String majorDuration) 
    {
        this.majorDuration = majorDuration;
    }

    public String getMajorDuration() 
    {
        return majorDuration;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("majorId", getMajorId())
            .append("majorNumber", getMajorNumber())
            .append("majorName", getMajorName())
            .append("majorClassification", getMajorClassification())
            .append("majorCategory", getMajorCategory())
            .append("majorDuration", getMajorDuration())
            .toString();
    }
}